package com.itcast.demo.service.impl;

import com.itcast.demo.easyexcel.web.dao.EmployeeDao;
import com.itcast.demo.mapper.EmployeeMapper;
import com.itcast.demo.pojo.Employee;
import com.itcast.demo.pojo.TestEnum;
import com.itcast.demo.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author SuQianLong
* @description 针对表【tb_employee】的数据库操作Service实现
* @createDate 2024-12-29 18:26:06
*/
@Service
public class EmployeeServiceImpl implements EmployeeService{

    @Autowired
    private EmployeeMapper employeeDao;

    @Override
    public int insertAndUpdate(Employee employee) {
        return employeeDao.insertAndUpdate(employee);
    }

    @Override
    public int save(TestEnum testEnum) {
        return employeeDao.save(testEnum);
    }

    @Override
    public TestEnum getById(Integer userId) {
        return employeeDao.getById(userId);
    }
}




